﻿<Window x:Class="MetaDesigner.TermPicker"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
        xmlns:local="clr-namespace:MetaDesigner"
        Title="TermPicker" MinHeight="380" MinWidth="300" Height="450" Width="700" 
        WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner" Topmost="True" Closed="Window_Closed">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Label HorizontalAlignment="Center" HorizontalContentAlignment="Center"
               Grid.Row="0" Grid.Column="0" FontWeight="Bold"
               Padding="2" VerticalAlignment="Bottom">All Managed Metadata</Label>
        <TreeView Grid.Row="1" Grid.Column="0" Margin="5" x:Name="TermTree" SelectedItemChanged="TermTree_SelectedItemChanged" />
        
        <DockPanel Grid.Row="2">
            <Button Click="Select_Click" IsEnabled="False" x:Name="Select" Width="150" Padding="5" Margin="10">Select >></Button>
            <TextBox x:Name="SelectedTerm" IsReadOnly="True"></TextBox>
        </DockPanel>
        
        <Button Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" HorizontalAlignment="Center" HorizontalContentAlignment="Center"
                Width="200" Height="30" x:Name="submitButton" Content="Done!" Click="submitButton_Click" />
    </Grid>
</Window>
